This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
I have a mailin database and when someone sends to it, a message is sent back with a link to the document. Here is some of the code:
Set maildoc = db.Createdocument
recipient = doc.sendto
mailDoc.form = "Memo"
mailsubject = doc.subject(0)
mailDoc.sendTo = recipient
mailDoc.Subject = mailsubject
Principal = doc.from(0)
maildoc.principal = principal
Set rtitem = New NotesRichTextItem(mailDoc, "Body" )
rtstyle.NotesColor = COLOR_BLACK
Call rtitem.AppendStyle(rtstyle)
Call rtitem.Appendtext(doc.body)
rtstyle.NotesColor = COLOR_RED
Call rtitem.AppendStyle(rtstyle)
Call rtitem.AppendText("To see entire message with attachments, click this link -> ")
Call rtitem.AppendDocLink( doc, doc.subject(0))
Call mailDoc.Send(False)
The problem lies with mailDoc.Subject = mailsubject
If I use this then the email get sent to the mailin database and not the value in mailDoc.sendTo = recipient
If I use maildoc.subject = "Thanks!" then the email goes to the proper recipient.
Any ideas as to why altering the subject will get the mail sent to a different person????
Feedback number WEBB8F7JNC created by ~Joseph Quethipilyings on 03/22/2011
Status: Open
Comments: